Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 36f73ee5c03534ccdb2ba83d7339a6e7817e0028


Parents : 6e642c2
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-05-26T14:18:12-05:00

fix(voicemail): skip auto-answer for blocked callers

Changes

1 files changed, 7 insertions(+), 0 deletions(-)


Diff

diff --git a/meshchatx/src/backend/voicemail_manager.py b/meshchatx/src/backend/voicemail_manager.py
index e59cd571..21c8b9ae 100644
--- a/meshchatx/src/backend/voicemail_manager.py
+++ b/meshchatx/src/backend/voicemail_manager.py
@@ -171,6 +171,13 @@ class VoicemailManager:
RNS.log("Voicemail: Voicemail is disabled", RNS.LOG_DEBUG)
return
+ if self.db and self.db.misc.is_destination_blocked(caller_identity.hash.hex()):
+ RNS.log(
+ f"Voicemail: Caller {RNS.prettyhexrep(caller_identity.hash)} is blocked; skipping auto-answer",
+ RNS.LOG_DEBUG,
+ )
+ return
+
delay = self.config.voicemail_auto_answer_delay_seconds.get()
RNS.log(f"Voicemail: Will auto-answer in {delay} seconds", RNS.LOG_DEBUG)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────